<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var chicken
      var rabbit
      for (chicken = 0; chicken <= 35; chicken++) {
        rabbit = 35 - chicken
        if (chicken * 2 + rabbit * 4 == 94) {
          alert(`鸡有${chicken}只，兔有${rabbit}只`)
        }
      }
    </script>
  </body>
</html>
